﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHJ.Cost.CostAccounting.Cache
{
    public interface IBatchCostCache
    {
        Task<BatchCostDetailCacheItem> GetDetailCacheItemOrNull(string id);

        Task<BatchCostCacheItem> GetCacheItemOrNull(string id);

        Task ClearDetailCache();

        Task ClearCache();

        Task InitDetailCache();

        Task InitCache();

        Task<List<BatchCostDetailCacheItem>> GetDetailCacheItems();

        Task<List<BatchCostCacheItem>> GetCacheItems();
    }
}
